package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 库存总览
 * @author pc
 *
 */
public class StockBean {

	private String inventory_id;
	private String catalog_parent_name;
	private String catalog_name;
	private String item_name;
	private String val_names;
	private String unit;
	private String qichu_num;
	private String qichu_price;
	private String qichu_amount;
	private String should_num;
	private String should_price;
	private String should_amount;
	private String real_num;
	private String loss_num;
	private String loss_price;
	private String loss_amount;
	private String loss_rate;
	
	public StockBean() {
		
	}
	public StockBean(Map<String, Object> map) {
		if (!(map.get("inventory_id") == null || map.get("inventory_id").equals(""))) {
    		this.inventory_id = map.get("inventory_id").toString();
		}
    	if (!(map.get("catalog_parent_name") == null || map.get("catalog_parent_name").equals(""))) {
    		this.catalog_parent_name = map.get("catalog_parent_name").toString();
		}
    	if (!(map.get("catalog_name") == null || map.get("catalog_name").equals(""))) {
    		this.catalog_name = map.get("catalog_name").toString();
		}
    	if (!(map.get("item_name") == null || map.get("item_name").equals(""))) {
    		this.item_name = map.get("item_name").toString();
		}
    	if (!(map.get("val_names") == null || map.get("val_names").equals(""))) {
    		this.val_names = map.get("val_names").toString();
		}
    	if (!(map.get("unit") == null || map.get("unit").equals(""))) {
    		this.unit = map.get("unit").toString();
		}
    	if (!(map.get("qichu_num") == null || map.get("qichu_num").equals(""))) {
    		this.qichu_num = map.get("qichu_num").toString();
		}
    	if (!(map.get("qichu_price") == null || map.get("qichu_price").equals(""))) {
    		this.qichu_price = map.get("qichu_price").toString();
		}
    	if (!(map.get("qichu_amount") == null || map.get("qichu_amount").equals(""))) {
    		this.qichu_amount = map.get("qichu_amount").toString();
		}
    	if (!(map.get("should_num") == null || map.get("should_num").equals(""))) {
    		this.should_num = map.get("should_num").toString();
		}
    	if (!(map.get("should_price") == null || map.get("should_price").equals(""))) {
    		this.should_price = map.get("should_price").toString();
		}
    	if (!(map.get("should_amount") == null || map.get("should_amount").equals(""))) {
    		this.should_amount = map.get("should_amount").toString();
		}
    	if (!(map.get("real_num") == null || map.get("real_num").equals(""))) {
    		this.real_num = map.get("real_num").toString();
		}
    	if (!(map.get("loss_num") == null || map.get("loss_num").equals(""))) {
    		this.loss_num = map.get("loss_num").toString();
		}
    	if (!(map.get("loss_price") == null || map.get("loss_price").equals(""))) {
    		this.loss_price = map.get("loss_price").toString();
		}
    	if (!(map.get("loss_amount") == null || map.get("loss_amount").equals(""))) {
    		this.loss_amount = map.get("loss_amount").toString();
		}
    	if (!(map.get("loss_rate") == null || map.get("loss_rate").equals(""))) {
    		this.loss_rate = map.get("loss_rate").toString();
		}
	}
	
	public static List<StockBean> getBean(List<Map<String, Object>> list) {
		List<StockBean> stockBeans = null;
		if (list != null && list.size() > 0) {
			stockBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				stockBeans.add(new StockBean(map));
			}
		}
		return stockBeans;
	}
	
	public String getInventory_id() {
		return inventory_id;
	}
	public void setInventory_id(String inventory_id) {
		this.inventory_id = inventory_id;
	}
	public String getCatalog_parent_name() {
		return catalog_parent_name;
	}
	public void setCatalog_parent_name(String catalog_parent_name) {
		this.catalog_parent_name = catalog_parent_name;
	}
	public String getCatalog_name() {
		return catalog_name;
	}
	public void setCatalog_name(String catalog_name) {
		this.catalog_name = catalog_name;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public String getVal_names() {
		return val_names;
	}
	public void setVal_names(String val_names) {
		this.val_names = val_names;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getQichu_num() {
		return qichu_num;
	}
	public void setQichu_num(String qichu_num) {
		this.qichu_num = qichu_num;
	}
	public String getQichu_price() {
		return qichu_price;
	}
	public void setQichu_price(String qichu_price) {
		this.qichu_price = qichu_price;
	}
	public String getQichu_amount() {
		return qichu_amount;
	}
	public void setQichu_amount(String qichu_amount) {
		this.qichu_amount = qichu_amount;
	}
	public String getShould_num() {
		return should_num;
	}
	public void setShould_num(String should_num) {
		this.should_num = should_num;
	}
	public String getShould_price() {
		return should_price;
	}
	public void setShould_price(String should_price) {
		this.should_price = should_price;
	}
	public String getShould_amount() {
		return should_amount;
	}
	public void setShould_amount(String should_amount) {
		this.should_amount = should_amount;
	}
	public String getReal_num() {
		return real_num;
	}
	public void setReal_num(String real_num) {
		this.real_num = real_num;
	}
	public String getLoss_num() {
		return loss_num;
	}
	public void setLoss_num(String loss_num) {
		this.loss_num = loss_num;
	}
	public String getLoss_price() {
		return loss_price;
	}
	public void setLoss_price(String loss_price) {
		this.loss_price = loss_price;
	}
	public String getLoss_amount() {
		return loss_amount;
	}
	public void setLoss_amount(String loss_amount) {
		this.loss_amount = loss_amount;
	}
	public String getLoss_rate() {
		return loss_rate;
	}
	public void setLoss_rate(String loss_rate) {
		this.loss_rate = loss_rate;
	}
}
